<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>卖房信息信息</title>
    <link rel="stylesheet" th:href="@{/layuiadmin/layui/css/layui.css}" media="all">
    <style>
        .layui-form-label {
            width: 80px;
        }
    </style>
</head>
<body>
    <div class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item" style="width: 550px">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.title}:''" type="text" name="title" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 650px">
            <label class="layui-form-label">图片</label>
            <div class="layui-input-block">
                <div class="layui-upload">
                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">

                        <div class="layui-upload-list" id="previewImg">
                            <div   th:each="image,status:${#strings.arraySplit(sellHouse?.picture,',')}">
                                <img th:src="${'http://127.0.0.1:8099/upload/sellHouse/'+image}"  style="position: relative ;left:12px; width: 95%;height: auto;margin-bottom: 10px"
                                     th:alt="${image}"  class="layui-upload-img" />
                            </div>
                        </div>

                    </blockquote>
                </div>
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input disabled ="disabled"  th:value="${sellHouse != null}?${sellHouse.linkman}:''" type="text" name="linkman" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input disabled ="disabled"  th:value="${sellHouse != null}?${sellHouse.phone}:''" type="text" name="phone" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.email}:''" type="text" name="email" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">户型</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.houseType}:''" type="text" name="houseType"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 450px">
            <label class="layui-form-label">位置</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.location}:''" type="text" name="location"  class="layui-input">
            </div>
        </div>

        <div class="layui-inline" style="width: 300px">
            <label class="layui-form-label">地区</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse?.region}" type="text" name="region"  class="layui-input">
            </div>
        </div>
        <br/>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">小区</label>
            <div class="layui-input-block">
                <input disabled ="disabled"  th:value="${sellHouse != null}?${sellHouse.housingEstate}:''" type="text" name="housingEstate"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">面积(㎡)</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.area}:''" type="text" name="area"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">价格(元/㎡)</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.unitPrice}:''" type="text" name="price"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">总价格(万)</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.totalPrice}:''" type="text"  name="totalPrice" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">总楼层</label>
            <div class="layui-input-block">
                <input disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.floor}:''" type="text" name="floor" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">楼层</label>
            <div class="layui-input-block">
                <input disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.floorLevel}:''" type="text" name="floorLevel" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">房屋类型</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.type}:''" type="text" name="type"  class="layui-input">

            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">装修情况</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.decoration}:''" type="text" name="decoration"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">朝向</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.orientation}:''" type="text" name="orientation"  class="layui-input">
            </div>
        </div>


        <div class="layui-form-item" style="width: 450px;height:300px ">
            <label class="layui-form-label">房源概况</label>
            <div class="layui-input-block">
                <textarea  disabled ="disabled"  style="resize: none;width: 450px; height: 300px"  th:text="${sellHouse != null}?${sellHouse.houseSituation}:''" name="houseSituation"  class="layui-textarea"></textarea>
            </div>
        </div>


        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">产权性质</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.nature}:''" type="text" name="nature"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 550px">
            <label class="layui-form-label">产权年限</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.natureAgeLimit}:''" type="text" name="natureAgeLimit"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">房本性质</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.premisesPermitAge}:''" type="text" name="premisesPermitAge"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">房屋建造</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.bulidCondition}:''" type="text" name="bulidCondition"  class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" >
            <label class="layui-form-label">电梯</label>
            <div class="layui-input-block">
                <input th:checked="${sellHouse?.lift == 1}"   type="radio" name="lift" value="1" title="有">
                <input th:checked="${sellHouse?.lift == 0}" type="radio" name="lift" value="0" title="无" >
            </div>
        </div>

        <div class="layui-form-item" >
            <label class="layui-form-label">唯一住房</label>
            <div class="layui-input-block">
                <input th:checked="${sellHouse?.onlyHousing == 1}"  type="radio" name="onlyHousing" value="1" title="是">
                <input th:checked="${sellHouse?.onlyHousing == 0}"  type="radio" name="onlyHousing" value="0" title="否" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">南北通透</label>
            <div class="layui-input-block">
                <input th:checked="${sellHouse?.northSouth == 1}" type="radio" name="northSouth" value="1" title="是">
                <input th:checked="${sellHouse?.northSouth == 0}" type="radio" name="northSouth" value="0" title="否" >
            </div>
        </div>


        <div class="layui-form-item" style="width: 300px">
            <label class="layui-form-label">发布时间</label>
            <div class="layui-input-block">
                <input  disabled ="disabled" th:value="${sellHouse != null}?${sellHouse.publishTime}:''" type="text" name="publishTime" lay-verify="required"  autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <script th:src="@{/layuiadmin/layui/layui.js}"></script>
    <script>

        layui.use(['form','upload','jquery','layedit', 'laydate'], function () {
        });


    </script>
</body>
</html>